/*
 * @Author: 张久冬
 * @Date: 2021-12-16 22:21:41
 * @
# Description:
 */
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:1203'
axios.interceptors.response.use(
  (config) => {
    return config.data
  },
  (e) => {
    return Promise.reject(e)
  }
)
console.log('axios被执行了')
axios.get('/').then((res) => {
  console.log('axios被执行了222', res)
})
axios.post('/aaaa').then((res) => {
  console.log('axios被执行了222', res)
})
